/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.elec.bulk.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.net.ecode.common.persistence.Page;
import cn.net.ecode.common.service.CrudService;
import cn.net.ecode.elec.bulk.entity.ElecConvenientBulk;
import cn.net.ecode.elec.bulk.dao.ElecConvenientBulkDao;

/**
 * 便利团Service
 * @author AlanShelby
 * @version 2019-09-26
 */
@Service
@Transactional(readOnly = true)
public class ElecConvenientBulkService extends CrudService<ElecConvenientBulkDao, ElecConvenientBulk> {
	
	/**
	 * 获取单条数据
	 * @param elecConvenientBulk
	 * @return
	 */
	public ElecConvenientBulk get(ElecConvenientBulk elecConvenientBulk) {
		return super.get(elecConvenientBulk);
	}
	
	/**
	 * 查询列表数据
	 * @param elecConvenientBulk
	 * @return
	 */
	public List<ElecConvenientBulk> findList(ElecConvenientBulk elecConvenientBulk) {
		return super.findList(elecConvenientBulk);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param elecConvenientBulk
	 * @return
	 */
	public Page<ElecConvenientBulk> findPage(Page<ElecConvenientBulk> page, ElecConvenientBulk elecConvenientBulk) {
		return super.findPage(page, elecConvenientBulk);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param elecConvenientBulk
	 */
	@Transactional(readOnly = false)
	public void save(ElecConvenientBulk elecConvenientBulk) {
		super.save(elecConvenientBulk);
	}
	
	/**
	 * 删除数据
	 * @param elecConvenientBulk
	 */
	@Transactional(readOnly = false)
	public void delete(ElecConvenientBulk elecConvenientBulk) {
		super.delete(elecConvenientBulk);
	}
	
}